package com.dgut.smart_house.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public class Md5Util {
    static String hashAlgorithmName = "MD5";
    static String credemtials = null;
    static String salt = null;
    static int hashIterations = 2;

    public static String Md5tool(String credemtials, String salt) {
        credemtials = credemtials;
        salt = salt;
        String result = new SimpleHash(hashAlgorithmName, credemtials, salt, hashIterations).toHex();
        return result;
    }
}
